#!../../jsrun

var x, t0, t, c;

c = new Curl;
t0 = +new Date;
c.setopt(c.CURLOPT_URL, "http://yandex.ru/");
c.setopt(c.CURLOPT_FOLLOWLOCATION, 1);
x = c.perform();
t = +new Date - t0;
alert('length of reply: ' + x.length + ' bytes; execution time: ' + t + ' ms.');

t0 = +new Date;
c.setopt(c.CURLOPT_URL, "http://rambler.ru/");
c.setopt(c.CURLOPT_FOLLOWLOCATION, 1);
x = c.perform();
t = +new Date - t0;
alert('length of reply: ' + x.length + ' bytes; execution time: ' + t + ' ms.');







